package com.wgo.bpot.domain.server.ejb;

import static javax.persistence.GenerationType.AUTO;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Transient;

import com.wgo.bpot.domain.common.UserRole;
import com.wgo.bpot.domain.common.impl.UserImpl;

/**
 * @version $Id: UserEjb.java 540 2008-01-09 19:42:31Z petter.eide $
 */
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class UserEjb extends UserImpl {
    
    @Override
    @Id
    @GeneratedValue(strategy=AUTO)
    public Long getDbId() {
        return super.getDbId();
    }

	@Override
	public String getFirstName() {
		return super.getFirstName();
	}

	@Override
	public String getLastName() {
		return super.getLastName();
	}

	@Override
	public long getPasswordHashCode() {
		return super.getPasswordHashCode();
	}
    
	@Override
    public String getPassword() {
        return super.getPassword();
    }

    @Override
	public String getUserName() {
		return super.getUserName();
	}

    @Override
    @Transient
    public UserRole getUserRole() {
    	return super.getUserRole();
    }

	@Override
	public String getUserRoleName() {
		// TODO Auto-generated method stub
		return super.getUserRoleName();
	}
	
}
